<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>$this 练习</title>
</head>
<body>
	<?php
  /**
  * 
  */
  class Person 
  {    var $name;
       var $age;
       var $sex;
     function say(){
        echo $this->name."在说话"."<br>";

     }
      function eat(){
          echo $this->name."这个人在吃饭"."<br>";
     }
      function run(){
     }	
  }
  $p1=new Person();
  $p2=new Person();
  $p1->name="zhansan";
  $p2->name"lisi";
  $p1->say();
  $p2->say();



  ?>
</body>
</html>